{% extends "base_generic.html" %}
{% block content %}
  <h1>Films ({{films|length}})</h1>
  <h2><a href="/admin/films//new/" class="add">Add new Film</a></h2>
  <table class="tablelist">
  {% for film in films %}
    <tr>
      <td><a href="/films/{{film.userurl}}/{{film.url}}/">{{film.name}}</a></td>
      <td>{{film.genre.name}}</td>
      <td><a href="/admin/films/{{film.key}}/edit/">Edit</a></td>
      <td><a href="/admin/films/{{film.key}}/delete/" onclick="return confirm('are you sure do you want to delete \'{{film.name}}\'?');">Delete</a></td>
    </tr>
{%endfor%}
</table>
{% endblock %}
